﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Language.ascx.cs" Inherits="Admin_Header_Language" %>
<style type="text/css">
    .item-img
    {
        display: inline-block;
        vertical-align: middle;
        width: 16px;
        height: 16px;
    }
    .item-text
    {
        display: inline-block;
        vertical-align: middle;
        padding: 3px 0 3px 3px;
    }
</style>

<input id="cblanguage" style="width: 100px; height:auto;" url="Header/DataLanguages/DataLanguages.ashx" valuefield="id"
    textfield="text" panelHeight="auto"> </input>

  <script type="text/javascript">
      $(function () {
          $('#cblanguage').combobox({
              formatter: function (row) {
                  var imageFile = 'Header/DataLanguages/images/' + row.icon;
                  return '<img class="item-img" src="' + imageFile + '"/><span class="item-text">' + row.text + '</span>';
              }
          });
      });
      $(function () {
          $('#cblanguage').combobox('setValues', '1');
      });
      
</script>  